package com.my.study.handler;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.client.producer.SendCallback;
import org.apache.rocketmq.client.producer.SendResult;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class RoleSendCallbackHandler implements SendCallback {
    @Override
    public void onSuccess(SendResult sendResult) {
        log.info("RoleSendCallbackHandler类成功数据处理");
    }

    @Override
    public void onException(Throwable throwable) {
        log.info("RoleSendCallbackHandler类失败数据处理");
    }
}
